package model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Configuration;

//@Configuration
//@Data
//@NoArgsConstructor
//@AllArgsConstructor
//public class Student {
//
//    private Integer stuId;
//    private String stuName;
//    private Integer stuAge;
//
//}
public class Student {

    private Integer stuId;
    private String stuName;
    private Integer stuAge;

    public Student() {
        System.out.println("Student==>构造器!!!");
    }

    public Student(Integer stuId, String stuName, Integer stuAge) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuAge = stuAge;
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        System.out.println("==>Student->setId()!!!");
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public Integer getStuAge() {
        return stuAge;
    }

    public void setStuAge(Integer stuAge) {
        this.stuAge = stuAge;
    }

    public void initStudent1() {
        System.out.println("==>Student->init-method()!!!");
    }

    public void destroyStudent1() {
        System.out.println("==>Student->destroy-method()!!!");
    }

}